package org.itstack.state.order;

/**
 * 订单操作枚举
 * 定义订单可以执行的各种操作
 */
public enum OrderAction {
    
    PAY("支付", "用户支付订单"),
    SHIP("发货", "商家发货"),
    DELIVER("送达", "订单送达"),
    COMPLETE("完成", "订单完成"),
    CANCEL("取消", "取消订单"),
    REFUND("退款", "申请退款");
    
    private final String name;
    private final String description;
    
    OrderAction(String name, String description) {
        this.name = name;
        this.description = description;
    }
    
    public String getName() {
        return name;
    }
    
    public String getDescription() {
        return description;
    }
    
    @Override
    public String toString() {
        return name;
    }
}
